/*
 * EncryptionProperties.cpp
 *
 *  Created on: 12/11/2011
 *      Author: Marcos Rimoldi
 */

#include "EncryptionProperties.h"

EncryptionProperties::EncryptionProperties() {
}

EncryptionProperties::~EncryptionProperties() {
}


string EncryptionProperties::getVigenereKey() {
	ifstream file;
	file.open("resources/encription");

	string linea;
	while (!file.eof()) {
		getline(file,linea);

		if (linea.substr(0,linea.find("=")).compare("vigenere_key") == 0) {
			return linea.substr(linea.find("=")+1,linea.length());
		}
	}
	file.close();
	return "default";
}
